package com.citrix.gs.util.beacon.job;

import com.citrix.gs.util.RepositoryDeployer;
import com.citrix.gs.util.beacon.BeaconJobType;

public class BeaconDataImportJob extends BeaconJob implements Deployable {

	public BeaconDataImportJob(RepositoryDeployer deployer) {
		super(deployer);
		
		this.jobType = BeaconJobType.DataImporter;
		this.jobName = this.jobType.name() + "-" + repo.getName();
		this.tempFile = "data_importer_template.xml";
	}

	@Override
	public void add() {
		if(beforeAdd() && editAssignedNode() && createJob()) {}
		else {}

	}

    @Override
    public void move() {
        if(beforeMove() && updateBuildCommand() && moveJob() ) {} else {}
    }
    
    public boolean updateBuildCommand(){
        
        return updateBuildCommand("DataImporterTest", "DataImporter");
    }

}
